package com.fiona.start.some.thing;

import com.fiona.common.constant.FionaConstant;
import com.fiona.common.constant.FionaSpace;
import com.fiona.common.extension.Extension;
import com.fiona.start.some.StartParam;
import com.fiona.start.some.StartSome;

/**
 * 标识createBean方法已经调用完毕
 */
@Extension(order=8)
public class HasStart implements StartSome {

    /**
     * 获取全局存储空间
     */
    private FionaSpace constants = FionaSpace.getFionaSpace();

    /**
     * 标识createBean方法已经调用完毕
     * @param startParam 参数
     * @throws Exception 异常
     */
    @Override
    public void load(StartParam startParam) throws Exception {
        constants.setAttr(FionaConstant.HAS_START,"yes");
    }
}